powered by
%nin%
x %nin% table
!(x %in% table).
x <- sample(1:6,12,replace=TRUE) x %in% 1:3 x %nin% 1:3
Run the code above in your browser using DataLab